/**
 * @deprecated Use {@link resize}
 * @param dialog 自适应窗口
 */
export const resizeWindow = (dialog: any) => {
    const width = window.innerWidth
    const height = window.innerHeight
    const init = 768
    if (width < init) {
        dialog.value = "300px"
    } else {
        dialog.value = "420px"
    }

}
/**
 * @deprecated Use {@link resize}
 * @param dialog 自适应窗口
 */
export const resizeTable = (dialogTable: any) => {
    const width = window.innerWidth
    const height = window.innerHeight
    const init = 768
    if (width < init) {
        dialogTable.value = "300px"
    } else {
        dialogTable.value = "720px"
    }

}

export const resize = (dialog: any, phonew: any, ipadw: any, pcw: any) => {
    const width = window.innerWidth
    // const height = window.innerHeight
    const init = 768
    if (width < init) {
        dialog.value = phonew ? phonew : "300px"
    } else if (width === init) {
        dialog.value = ipadw ? ipadw : "520px"
    } else {
        dialog.value = pcw ? pcw : "840px"
    }

}